package com.mxm.java1;

import com.sun.net.ssl.internal.ssl.Provider;
import sun.security.ec.CurveDB;

import java.net.URL;

public class ClassLoaderTest2 {
    public static void main(String[] args)  {
        try {
            //
            ClassLoader classLoader=Class.forName("java.lang.String").getClassLoader();
            System.out.println(classLoader);
            ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
            System.out.println(contextClassLoader);
            ClassLoader parent = ClassLoader.getSystemClassLoader().getParent();
            System.out.println(parent);

        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
